<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>全局组件练习3</title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<abss></abss>
		</div>
		
		<template id="tem">
			<div>
				<h1>
					我是一个组件
					{{msg}}
				</h1>
			</div>
		</template>
		
		<script>
		Vue.component("abss",{
			data(){
				return{
					msg:123
				}
			},
			template:"#tem"
		})
		
		const app = new Vue({
			el:"#app"
		})
		</script>
	</body>
</html>
